package datapackage

//Relation 关系
type Relation struct {
	Name       string `xml:"name,attr"`
	Table      Table
	Items      []RelationItem `xml:"Item"`
	RedisIndex int            `xml:"redisIndex,attr"`
}

//RelationItem 关系项
type RelationItem struct {
	Name       string `xml:"name,attr"`
	NameColumn string `xml:"nameColumn,attr"`
	Period     string `xml:"period,attr"`
}
